package com.example.ai.repository;

import com.example.ai.entity.ShareLike;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface ShareLikeRepository extends JpaRepository<ShareLike, Long> {
    Optional<ShareLike> findByShareIdAndUserId(Long shareId, Long userId);
    Page<ShareLike> findByUserId(Long userId, Pageable pageable);
} 